<h1>Listing assignments</h1>

<table>
  <tr>
    <th>Form</th>
    <th>User</th>
    <th>List</th>
    <th>Frequency</th>
    <th>Accountability model</th>
  </tr>

<% for assignment in @assignments %>
  <tr>
    <td><%=h assignment.form_id %></td>
    <td><%=h assignment.user_id %></td>
    <td><%=h assignment.list_id %></td>
    <td><%=h assignment.frequency %></td>
    <td><%=h assignment.accountability_model %></td>
    <td><%= link_to 'Show', assignment %></td>
    <td><%= link_to 'Edit', edit_assignment_path(assignment) %></td>
    <td><%= link_to 'Destroy', assignment, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New assignment', new_assignment_path %>
